package com.lovo.stock.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lovo.stock.bean.JurisdictionBean;
import com.lovo.stock.mapper.JurisdictionMapper;
import com.lovo.stock.service.IJurisdictionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class JourisdictionServiceImpl extends ServiceImpl<JurisdictionMapper, JurisdictionBean> implements IJurisdictionService {
    @Autowired
    JurisdictionMapper jurisdictionMapper;

    @Override
    public List<JurisdictionBean> queryJurisdiction() {
        return jurisdictionMapper.selectList(null);
    }

    @Override
    public List<JurisdictionBean> queryJurisdictionByRoleIds(List<Integer> roleIds) {
        return jurisdictionMapper.queryJurisdictionByRoleIds(roleIds);
    }
}
